package com.lcy.demo;

import org.springframework.aop.AfterReturningAdvice;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * 创建时间：2017/4/14 15:50
 *
 * @author 娄存银
 * @version 1.0
 */
public class ResponseHelper implements MethodBeforeAdvice,AfterReturningAdvice{
    @Override
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        System.out.println("执行前拦截");
    }

    @Override
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println("执行完成后拦截");
    }
}
